import request from '../request'
import store from '@/store/index.js'

//验证码接口
export function getcode(data) {
  return request({
    url: '/index/captcha',
    method: 'POST',
    data
  })
}

// 注册接口
export function register(data) {
  return request({
    url: '/index/registration',
    method: 'POST',
    data
  })
}

// 登录接口
export function login(data) {
  return request({
    url: '/index/login',
    method: 'POST',
    data
  })
}
